package cn.bravolinks;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class Application {
    public  static void main(String[] args){
        ApplicationContext context = SpringApplication.run(Application.class,args);
        String aaa = context.getEnvironment().getProperty("server.name");
        System.out.println(aaa);
        String bbb = context.getEnvironment().getProperty("server.port");
        System.out.println(bbb);
    }
}
